package com.mb.note.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author LiJian
 * @date 2024-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("category")
@ApiModel("目录实体")
public class Category {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 目录名称
     */
    private String name;
    /**
     * 本条数据id
     */
    private int sid;
    /**
     * 父id
     */
    private int fid;
    /**
     * 目录id
     */
    private int level;

}
